// 修改
storage.db['rooms.objects'].update({ _id: 'bcd207740170d6a' }, { $set: { level: 2 } })
storage.db['rooms.objects'].update({ _id: '0e3f326a78da581' }, { $set: { store: { 'energy': 300 } } })
// 所有建筑都完成99%
storage.db['rooms.objects'].find({ type: 'constructionSite' }).then(resp => resp.map(cs => storage.db['rooms.objects'].findOne({ _id: cs._id }).then(csDetail => storage.db['rooms.objects'].update({ _id: cs._id }, { $set: { progress: csDetail.progressTotal - 50} }))))
// 所有工地都进度成为1%
storage.db['rooms.objects'].find({ type: 'constructionSite' }).then(resp => resp.map(cs => storage.db['rooms.objects'].findOne({ _id: cs._id }).then(csDetail => storage.db['rooms.objects'].update({ _id: cs._id }, { $set: { progress: 10 } }))))

//  将下面的 _id 替换成想查询的对象 id
storage.db['rooms.objects'].findOne({ _id: '88a25546433729e' }).then(print)
//  注意修改 controller 的 id
storage.db['rooms.objects'].update({_id: '88a25546433729e'}, {$set: { hits: 4000 }})
storage.db['rooms.objects'].update({_id: 'a4c8555018e5bad'}, {$set: { hits: 4000 }})
storage.db['rooms.objects'].update({_id: '2a2a55514b470f3'}, {$set: { hits: 4000 }})
storage.db['rooms.objects'].update({_id: '6a3f55528525761'}, {$set: { hits: 4000 }})